package cn.yanhu.kuwanapp.my.adapter

import cn.woochen.comlib.adapter.CommonRecyclerAdapter
import cn.yanhu.kuwanapp.R
import cn.yanhu.kuwanapp.bean.response.RespMyConfigBean
import cn.yanhu.kuwanapp.databinding.ItemMyTopMenuBinding

/**
 *
 * 类描述：
 * @author：woochen
 * create at：2021/7/28 7:19 AM
 */
class MyTopMenuAdapter(datas: List<RespMyConfigBean.Icon>) :
        CommonRecyclerAdapter<RespMyConfigBean.Icon>(datas, R.layout.item_my_top_menu) {

    override fun convert(holder: ViewHolder, item: RespMyConfigBean.Icon) {
        holder.getDataBinding<ItemMyTopMenuBinding?>()?.let {
            it.topMenuBean = item
        }
    }
}